file chooser: Store size more frequently
authorMatthias Clasen <mclasen@redhat.com>
Fri, 11 Dec 2015 17:15:03 +0000 (12:15 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 11 Dec 2015 17:15:03 +0000 (12:15 -0500)
commitd4654dd10b762afdeb64fd6656a8cea6b440394b
tree46fb93fff7371d6e6c4ba267d423c9714cd3c7f7
parenta8a33b71e4fb3077c5b7cdd65f248515a1c525ea
file chooser: Store size more frequently

We were only storing the dialog size on unmap, but resetting to the
stored default value more often, e.g. on focus-out. This was causing
the dialog to 'jump back' to its remembered size after the user
manually resized it, leading to frustration and bug reports.

Instead, save the dialog size on every ::size-allocate of the toplevel.
To avoid needlessly spamming dconf, only write the new value if it
changed.
gtk/gtkfilechooserdialog.c